package com.example.androidkt.first


/**
 *  data 关键字定义一个数据类
 * */


data class Cellphone(val brand: String, val price: Double)
class Cellphone1(val brand: String, val price: Double)

fun main(){
    val c = Cellphone("apple", 1000.0)
    val c1 = Cellphone1("apple", 1000.0)


    println("-------------------------")

    println(c)
    println(c1)

    println("-------------------------")
}